package com.company.dao;

import com.company.pojo.Member;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * @author fu xiao liu
 * @date 2021-08-12 20:52
 */
public interface MemberDao {

    /*
     * @date 按照电话号码查询账号信息
     * @param telephone
     */
     Member findByTelephone(String telephone);

    /*
     * @date 自动会员注册
     * @param member
     */
    void add(Member member);


    List<Member> findAll();

    Page<Member> selectByCondition(String queryString);

    void deleteById(Integer id);

    Member findById(Integer id);

    void edit(Member member);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberCountAfterDate(String date);

    Integer findMemberTotalCount();


}
